package cn.iocoder.yudao.module.system.controller.admin.mini.goodInfo.amway.vo;

import lombok.Data;

import java.util.Comparator;

@Data
public class AmwayVo implements Comparator<AmwayVo> {

    //商品id
    Integer goodId;
    //顺序
    Integer order;


    @Override
    public int compare(AmwayVo o1, AmwayVo o2) {
        return o1.order-o2.order;
    }
}
